package com.wondertek.poms.dao.po;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Proxy;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author chenjijiang
 * @description  未来电视
 */
@Data
@Entity
@Table(name = "FOR_CIS_LOG")
@DynamicUpdate
@DynamicInsert
@Proxy(lazy = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ForCisLog implements Serializable {
	private static final long serialVersionUID = 1613368129623718466L;

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "FOR_CIS_LOG_SEQ")
	@SequenceGenerator(name = "FOR_CIS_LOG_SEQ", allocationSize = 1, sequenceName = "FOR_CIS_LOG_SEQ")
	private Long id;

	@Column(name = "UUID")
	private String uuid;  //uuid

	@Column(name = "PRD_CONT_ID")
	private Long prdContId; // 节目 ID

	@Column(name = "MEDIA_FILE_ID")
	private String mediaFileId ;  //媒体id

	@Column(name = "CREATE_TIME")
	private Date createTime;    //创建时间

	@Column(name = "OPERATION")
	private String operation;  //0：新增  1：节目集更新 2：节目更新  3：审核结果集合查询  4：审核结果独立查询 5：内容下线 6：媒体更新 7：节目删除 8：节目集删除 9:批量数据删除

	@Column(name = "RESPONSE_STATUS")
	private String responseStatus; //0000：成功 9999：失败

	@Column(name = "RESPONSE_MESSAGE")
	private String responseMessage;//处理失败原因

	@Column(name = "RESPONSE_TIME")
	private String responseTime;//响应时间

	@Column(name = "AUDIT_STATUS")
	private String auditStatus;//播控状态 1：播控成功  2：播控拒绝   3:播控失败(暂时没有用)  4:未播控

	@Column(name = "IS_FREE_TRIAL")
	private String isFreetrial; //是否免审 0 不免审  1：免审 //添加，更新，查询时存在
}
